<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统配置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" type="text/css" href="/Public/admin/layui/css/layui.css" media="all">
  <link rel="stylesheet" type="text/css" href="/Public/admin/bootstrap/css/bootstrap.css" media="all">
  <link rel="stylesheet" type="text/css" href="/Public/admin/global.css" media="all">
  <link rel="stylesheet" type="text/css" href="/Public/admin/css/personal.css" media="all">
  <script type="text/javascript" src="/Public/admin/jedate/jquery-1.7.2.js"></script>
</head>
<body>
  <blockquote class="layui-elem-quote mylog-info-tit">
    <ul class="layui-tab-title">
        <a href="/admin/system/config"><li class="layui-btn"><i class="layui-icon"></i>配置项管理</li></a>
    </ul>
</blockquote>
 <form class="layui-form col-lg-5" action=" <?php echo U('site');?>" method="post">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
      <ul class="layui-tab-title">
        <?php if(is_array($configgroup)): $i = 0; $__LIST__ = $configgroup;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list_title): $mod = ($i % 2 );++$i;?><li <?php if($key == 1 ): ?>class="layui-this"<?php endif; ?> />
            <?php echo ($list_title); ?>
          </li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>

      <div class="layui-tab-content">
       
        <?php if(is_array($vlist)): foreach($vlist as $key=>$v): ?><div <?php if($key == 1): ?>class="layui-tab-item  layui-show " <?php else: ?> class="layui-tab-item "<?php endif; ?>  >

          <?php if(is_array($v)): foreach($v as $key=>$config): ?><div class="layui-form-item">
            <label class="layui-form-label">
             <?php echo ($config["title"]); ?>
            </label>
            <div class="layui-input-block">  
             <?php echo get_element_html("config[".$config['name']."]",$config['typeid'], $config['tvalue'], $config['value']);?>  
            </div>
          </div><?php endforeach; endif; ?>
        </div><?php endforeach; endif; ?>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>

      </div>
    </div> 
   </form>
<script src="/Public/admin/layui/layui.js" charset="utf-8"></script>
<script>
layui.use('element', function(){
  var $ = layui.jquery
  ,element = layui.element(); //Tab的切换功能，切换事件监听等，需要依赖element模块
});
layui.use('form', function(){
  var form = layui.form();
  });
</script>

</body>
</html>